﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="ScrumFactory.Services.Web.Setup._default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" href="../css/style.css" type="text/css" />
    <title>The Scrum Factory - Setup</title>    
</head>
<body>
    <div id="content">
    <h1>The Scrum Factory - Database Setup</h1>
    <div class="alert">
        <img src="../images/alert.png" alt="alert image" style="vertical-align: middle" />
        Scrum Factory Database has not been installed yet.
    </div>
    <p>
    Before you start to use <i>Scrum Factory</i> the system database need to be created.<br />
    This setup page helps you to create the <i>Scrum Factory</i> <b>Microsoft SQL 2008</b> database.<br />
    You will need to supply the address of your SQL database and an user with CREATE DATABASE permissions.
    <br />
    </p>
    <form runat="server">

    
    <div style="background-color: Red; color: Yellow; ">
        <asp:Literal ID="DB_CREATE_ERR_MESSAGE_LIT" runat="server" Visible="false" />
    </div>
        
    <h2>Database connection information</h2>
    <div style="width: 400px; float: left;">
        <fieldset>
            <label>Microsoft SQL Server</label>
            <asp:TextBox ID="serverTextBox" runat="server" Width="300"/>            
        </fieldset>
        <fieldset>
            <label>Owner account</label>
            <asp:TextBox ID="userTextBox" runat="server" Width="300"/>
        </fieldset>
        <fieldset>
            <label>Owner password</label>
            <asp:TextBox ID="passTextBox" runat="server" Width="300"/>
        </fieldset>            
        <fieldset>            
            <asp:Button Text="CREATE DATABASE" runat="server" onclick="createDb_Click" />            
        </fieldset>        
    </div>
      
    </form>

        
    </div>    
</body>
</html>
